#include <ansi.h>
inherit ROOM;

void create()
{
              set("short", "解剑岩");
        set("long", @LONG
这是武林中极负盛名的武当解剑岩，岩下解剑池水明澈照人。武
林人士经此都自觉解剑，以示对武当派的尊敬。千百年来，概无例外。
LONG );
              set("objects", ([
                   CLASS_D("wudang") + "/shan": 1,
              ]));
              set("outdoors", "wudang");
              set("exits", ([
                  "eastdown"  : __DIR__"slxl2",
                  "westup"    : __DIR__"slxl3",
              ]));
        set("coor/x", -350);
        set("coor/y", -180);
        set("coor/z", 10);
        setup();
}

int valid_leave(object me, string dir)
{
//      mapping myfam;

        me = this_player();
        if( (query_temp("weapon", me )
            || query_temp("secondary_weapon", me) )
           && dir == "westup"
           && objectp(present("zhang cuishan", environment(me))))
        {
            message_vision(CYN "\n张翠山喝道：各色人等，到解剑岩都需解剑，千百"
                               "年来概无例外！\n" NOR, me);
            return notify_fail(HIC "你慑于武当山规，不敢硬争，只得退了一步。\n"
                               NOR);
        }
        return ::valid_leave(me, dir);
}